﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Data;
using DAO_HealthInsurance;
using DTO_HealthInsurance;

namespace BLL_HealthInsurance
{
  public  class BLLCompany
  {
      DAOCompany objCom = new DAOCompany();

      public DataTable ListCompany() {
          return objCom.ListCompany();
      }
      public int insertCompany(DTOCompanyDetail objCompany) {
          return objCom.InsertCompany(objCompany);
      }
      public int updateCompany(DTOCompanyDetail objCompany) {
          return objCom.UpdateCompanyInfo(objCompany);
      }
      public int deleteCompany(DTOCompanyDetail objCompany) {
          return objCom.DeleteCompany(objCompany);
      }
      public DataTable GetCompanyById(DTOCompanyDetail objCompany){
          return objCom.GetCompanyById(objCompany);
      }
      public DataTable searchcompany(string name,string address)
      {
          return objCom.Searchcompany(name,address);
      }
    }
}
